package com.wanmait.employment.manageController;

import com.github.pagehelper.PageInfo;
import com.wanmait.employment.entity.ResumViewsHistory;
import com.wanmait.employment.entity.Userinfo;
import com.wanmait.employment.service.ResumViewHistoryService;
import com.wanmait.employment.util.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("manage/ResumViewHistory")
public class ResumViewHistoryController {
    @Resource
    private ResumViewHistoryService resumViewHistoryService;
    @GetMapping("list")
    public AjaxResult list(String title,Integer pageNum,Integer pageSize){
        PageInfo<ResumViewsHistory> resumViewsHistoryPageInfo = resumViewHistoryService.selectList(title,pageNum,pageSize);
        return AjaxResult.success("",resumViewsHistoryPageInfo);
    }

    @GetMapping("delete")
    public AjaxResult delete(Integer id){
        resumViewHistoryService.delete(id);
        return AjaxResult.success("");
    }
}


